@import "~bootstrap/scss/bootstrap";

$primary: #0B76DE !default;
$textColor: rgba(51, 51, 51, 1);

a {
  &:focus, &:hover {
    text-decoration: none;
  }
}

body {
  background-color: #f6f6f6;
  color: $textColor;
  padding-bottom: 70px;
}

.top-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 111;
  width: 100%;
  height: 40px;
  text-align: center;
  line-height: 40px;
  background-color: #ffffff;
  border-bottom: 1px solid #dddddd;

  .title {
    font-size: 16px;
  }

  .back {
    position: absolute;
    left: 10px;
    z-index: 112;
    font-size: 14px;
    float: left;
    color: $textColor;

    &:focus, &:hover {
      text-decoration: none;
    }
  }
}

.footer-navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 111;
  width: 100%;
  height: 60px;
  background-color: #fbfcfc;

  .navbar-item {
    display: block;
    width: 33.33%;
    height: 60px;
    float: left;
    padding-top: 5px;
    padding-bottom: 5px;
    text-align: center;
    color: $textColor;

    &:focus, &:hover {
      text-decoration: none;
    }

    &.active {
      color: $primary;
    }

    .icon {
      width: 100%;
      height: 30px;
      line-height: 30px;
      float: left;
    }

    .title {
      width: 100%;
      height: 20px;
      font-size: 12px;
      line-height: 20px;
    }
  }
}

.bg-fff {
  background-color: #ffffff;
}

.mt-10 {
  margin-top: 10px;
}

.index-banner-box {
  width: 100%;
  height: auto;
  float: left;
  padding-top: 20px;

  .title {
    width: 100%;
    height: auto;
    float: left;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;

    span {
      padding-left: 10px;
      border-left: 5px solid $primary;
    }
  }
}

.course-list-box {
  width: 100%;
  height: auto;
  float: left;

  .course-list-item {
    width: 100%;
    height: auto;
    float: left;
    color: $textColor;
    padding-top: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eeeeee;

    &:focus, &:hover {
      text-decoration: none;
    }

    .course-thumb {
      width: 132px;
      height: 70px;
      float: left;
      padding-right: 10px;

      img {
        border-radius: 2px;
      }
    }

    .course-info-box {
      .course-title {
        font-size: 16px;
        font-weight: 400;
        margin-bottom: 15px;
      }

      .course-info {
        font-size: 14px;
        color: rgba(51, 51, 51, .7);

        .price {
          float: right;
        }
      }
    }
  }
}

.user-avatar {
  width: 100%;
  height: auto;
  float: left;
  text-align: center;
  padding-top: 50px;
  padding-bottom: 20px;

  img {
    border-radius: 40px;
    border: 2px solid $textColor;
  }
}

.user-nickname {
  width: 100%;
  height: auto;
  float: left;
  line-height: 20px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  padding-bottom: 50px;

  small {
    font-size: 12px;
  }
}

.user-menu-box {
  width: 100%;
  height: auto;
  float: left;

  .user-menu-item {
    width: 100%;
    height: 34px;
    float: left;
    color: $textColor;

    img {
      float: left;
      margin-right: 10px;
      margin-top: 7px;
    }

    .title {
      display: inline-block;
      float: left;
      width: auto;
      height: 20px;
      font-size: 15px;
      line-height: 20px;
      margin-top: 7px;
    }
  }
}

.course-thumb {
  width: 100%;
  height: 192px;
  float: left;
}

.course-info-box {
  width: 100%;
  height: auto;
  float: left;

  .course-title {
    width: 100%;
    height: auto;
    float: left;
    font-size: 24px;
    font-weight: 600;
    line-height: 26px;
    padding-bottom: 20px;
  }

  .course-info {
    width: 100%;
    height: auto;
    float: left;
    color: rgb(153, 153, 153);
    font-size: 14px;

    .user_count {
    }

    .price {
      float: right;
      color: rgb(234, 67, 53);
      font-size: 16px;
    }
  }
}

.course-detail-menu {
  width: 100%;
  height: 44px;
  float: left;
  background-color: #ffffff;
  margin-top: 10px;
  border-bottom: 1px solid #eeeeee;

  .course-menu-item {
    width: 50%;
    height: 44px;
    float: left;
    font-size: 16px;
    text-align: center;
    line-height: 44px;

    span {
      padding-bottom: 10px;
    }

    &.active {
      color: $primary;

      span {
        border-bottom: 2px solid $primary;
      }
    }
  }
}

.page-chapter {
  display: none;
  width: 100%;
  height: auto;
  float: left;
  background-color: #ffffff;

  .chapter-title {
    width: 100%;
    height: 40px;
    float: left;
    line-height: 40px;
    font-size: 14px;
    font-weight: 600;
    background-color: rgb(246, 248, 248);

    span {
      margin-left: 10px;
    }
  }

  .chapter-list-box {
    width: 100%;
    height: auto;
    float: left;

    .chapter-list-item {
      display: inline-block;
      width: 100%;
      height: auto;
      float: left;
      font-size: 14px;
      padding-top: 15px;
      padding-bottom: 15px;
      border-bottom: 1px solid #eeeeee;
      color: $textColor;

      &.active {
        background-color: $primary;
        opacity: .7;
        color: #ffffff;
      }

      span {
        margin-left: 20px;
      }
    }
  }
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  width: 100%;
  height: 60px;
  background-color: $primary;
  color: #ffffff;
  font-size: 20px;
  text-align: center;
  line-height: 60px;

  &:hover, &:focus {
    text-decoration: none;
    color: #ffffff;
  }
}

.video-play-box {
  width: 100%;
  height: 192px;
  float: left;
  background-color: #000000;
  text-align: center;
  vertical-align: middle;

  #xiaoteng-player {
    width: 100%;
    height: 192px;
    float: left;
  }
}

.goods-name, .goods-price {
  width: 100%;
  height: auto;
  float: left;
  line-height: 50px;

  span {
    float: right;
  }

  .price {
    color: red;
    opacity: .8;
  }
}

.promo-code {
  width: 100%;
  height: auto;
  float: left;
  padding-top: 20px;
  padding-bottom: 20px;

  .promo-code-info {
    line-height: 30px;
    color: red;
    opacity: .7;
    font-size: 14px;
  }
}

.payments {
  width: 100%;
  height: auto;
  float: left;

  .payment-item {
    width: 100%;
    height: auto;
    float: left;
    margin-bottom: 15px;

    &.selected {
      img {
        border: 2px solid $primary;
      }
    }
  }
}

.pay-button-box {
  width: 100%;
  height: auto;
  float: left;
}

.hand-pay {
  img {
    max-width: 100%;
  }
}

.page-desc {
  img {
    max-width: 100%;
  }
}